package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.ShopeeListinginfoCountry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShopeelisintinfomonitorMapper;
import com.ruoyi.system.domain.Shopeelisintinfomonitor;
import com.ruoyi.system.service.IShopeelisintinfomonitorService;
import com.ruoyi.common.core.text.Convert;

/**
 * shopee商品监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-23
 */
@Service
public class ShopeelisintinfomonitorServiceImpl implements IShopeelisintinfomonitorService 
{
    @Autowired
    private ShopeelisintinfomonitorMapper shopeelisintinfomonitorMapper;


    @Override
    public int countItemByItemId(ShopeeListinginfoCountry shopeeListinginfoCountry) {
        return shopeelisintinfomonitorMapper.countItemByItemId(shopeeListinginfoCountry);
    }

    /**
     * 查询shopee商品监控
     * 
     * @param itemid shopee商品监控ID
     * @return shopee商品监控
     */
    @Override
    public Shopeelisintinfomonitor selectShopeelisintinfomonitorById(ShopeeListinginfoCountry itemid )
    {
        return shopeelisintinfomonitorMapper.selectShopeelisintinfomonitorById(itemid);
    }

    /**
     * 查询shopee商品监控列表
     * 
     * @param shopeelisintinfomonitor shopee商品监控
     * @return shopee商品监控
     */
    @Override
    public List<Shopeelisintinfomonitor> selectShopeelisintinfomonitorList(Shopeelisintinfomonitor shopeelisintinfomonitor)
    {
        return shopeelisintinfomonitorMapper.selectShopeelisintinfomonitorList(shopeelisintinfomonitor);
    }

    /**
     * 新增shopee商品监控
     * 
     * @param shopeelisintinfomonitor shopee商品监控
     * @return 结果
     */
    @Override
    public int insertShopeelisintinfomonitor(Shopeelisintinfomonitor shopeelisintinfomonitor)
    {
        return shopeelisintinfomonitorMapper.insertShopeelisintinfomonitor(shopeelisintinfomonitor);
    }

    /**
     * 修改shopee商品监控
     * 
     * @param shopeelisintinfomonitor shopee商品监控
     * @return 结果
     */
    @Override
    public int updateShopeelisintinfomonitor(Shopeelisintinfomonitor shopeelisintinfomonitor)
    {
        return shopeelisintinfomonitorMapper.updateShopeelisintinfomonitor(shopeelisintinfomonitor);
    }

    /**
     * 删除shopee商品监控对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopeelisintinfomonitorByIds(String ids)
    {
        return shopeelisintinfomonitorMapper.deleteShopeelisintinfomonitorByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除shopee商品监控信息
     * 
     * @param itemid shopee商品监控ID
     * @return 结果
     */
    @Override
    public int deleteShopeelisintinfomonitorById(String itemid)
    {
        return shopeelisintinfomonitorMapper.deleteShopeelisintinfomonitorById(itemid);
    }
}
